package router

import (
	"0306zk/api/middleware"
	"0306zk/api/pkg"
	"github.com/gin-gonic/gin"
)

func LoadRouter(r *gin.Engine) {

	r.Use(middleware.Demo())

	r.POST("/login", Login)

	r.Use(pkg.JWTAuth("2209a"))

	r.POST("/SendSms", SendSms)

	r.POST("/register", Register)
}
